VOTING

This program performs several aspects used in voting and apportionment. Those included are:
1) Average Constituency
2) Absolute Unfairness and Relative Unfairness
3) Huntington-Hill Number.

The user inputs the population in each state as a list. This is stored in L1. Then the user inputs the number of representatives as a list stored in L2. Make sure the population and the number of representatives have the same index in both lists. The user then chooses which calculation to do:

AVE CONST:
The average constituency is computed by individual or the entire list.

UNFAIR:
Here the unfairness calculations are done. The user chooses which two to compare by entering the indices of the states as a list, so if you the user wishes to compare states 3 and 7 they would enter {3, 7}. Then the user is asked which state is to receive new representatives. Enter 1 for the first entry in the list and 2 for the second entry (the program also mentions this to the screen). Then it will ask how many representatives the new state is to receive. After this information is entered, the program will ask if you wish to have an absolute unfairness calculation or a relative unfairness calculation. 

HUNT-HILL NO.:
This part of the program computes the Huntington-Hill Number. If the user chooses this option, Huntington-Hill numbers are calculated for each member of the list and displayed to the screen (the output will pause after each number is calculated) and then the program will output which state gets the new representative based on the Huntington-Hill number. 


This program is great for people studying apportionment with these concepts involved. Enjoy!
 